package com.example.wtt.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comments {
    @Alias("commentID")
    @TableId(value = "comment_id", type = IdType.AUTO)
//    @TableField("comment_id")
    private Integer id;
    @Alias("dynamicId")
    @TableField("dynamic_id")
    private Integer dynamicId;
    @Alias("commenter_id")
    private Integer commenterId;
    @Alias("commenter_name")
    private String commenterName;
    @Alias("avatar")
    private String avatar;
    @Alias("commentText")
    private String text;
    @Alias("commentCreatTime")
    @TableField("comment_time")
    private Date commentTime;
}
